package com.coin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coin.domain.TurnoverOrder;

import java.util.List;

/**
 * @author 李力
 * @description 针对表【turnover_order(成交订单)】的数据库操作Service
 * @createDate 2025-06-20 14:51:04
 */
public interface TurnoverOrderService extends IService<TurnoverOrder> {

    /**
     * @Description: 成交记录的查询
     * @Author: 李 力
     * @Date: 2025/6/23
     * @Param:
     * @return: R
     */
    Page<TurnoverOrder> findByPage(Page<TurnoverOrder> page, Long userId, String symbol, Integer type);

    List<TurnoverOrder> getBuyTurnoverOrder(Long id, Long userId);

    List<TurnoverOrder> getSellTurnoverOrder(Long id, Long userId);
}
